package com.example.studyllm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class BaseEntity extends Model implements Serializable {
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    protected Long id;
    @TableField(
            fill = FieldFill.INSERT
    )
    protected Long cby;
    @TableField(
            fill = FieldFill.INSERT
    )
    protected LocalDateTime ctime;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    protected Long uby;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    protected LocalDateTime utime;

    @TableLogic
    @TableField(
            fill = FieldFill.INSERT
    )
    protected Integer deleteFlag;

    @TableField(exist=false)
    protected Integer pageNo ;

    @TableField(exist=false)
    protected Integer pageSize ;
}
